home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_400
/
422_03
/
6808.asm
< prev
next >
Wrap
Assembly Source File
|
1994-02-25
|
3KB
|
357 lines
*
* Test file to verify instructions and addressing modes of: 68HC08
*
IMM EQU $12
DIR EQU $34
EXT EQU $5678
*
ADC #IMM
ADC DIR
ADC EXT
ADC ,X
ADC 1,X
ADC 1000,X
ADC 1,SP
ADC 1000,SP
*
ADD #IMM
ADD DIR
ADD EXT
ADD ,X
ADD 1,X
ADD 1000,X
ADD 1,SP
ADD 1000,SP
*
AIS #IMM
AIX #IMM
*
AND #IMM
AND DIR
AND EXT
AND ,X
AND 1,X
AND 1000,X
AND 1,SP
AND 1000,SP
*
ASLA
ASLX
ASL DIR
ASL ,X
ASL 1,X
ASL 1,SP
*
ASRA
ASRX
ASR DIR
ASR ,X
ASR 1,X
ASR 1,SP
*
BCC *
BCS *
BEQ *
BGE *
BGT *
BHCC *
BHCS *
BHI *
BHS *
BIH *
BIL *
BLE *
BLO *
BLS *
BLT *
BMC *
BMI *
BMS *
BNE *
BPL *
BRA *
BRN *
BSR *
*
BCLR 0,DIR
BCLR 1,DIR
BCLR 2,DIR
BCLR 3,DIR
BCLR 4,DIR
BCLR 5,DIR
BCLR 6,DIR
BCLR 7,DIR
*
BIT #IMM
BIT DIR
BIT EXT
BIT ,X
BIT 1,X
BIT 1000,X
BIT 1,SP
BIT 1000,SP
*
BRCLR 0,DIR,*
BRCLR 1,DIR,*
BRCLR 2,DIR,*
BRCLR 3,DIR,*
BRCLR 4,DIR,*
BRCLR 5,DIR,*
BRCLR 6,DIR,*
BRCLR 7,DIR,*
*
BRSET 0,DIR,*
BRSET 1,DIR,*
BRSET 2,DIR,*
BRSET 3,DIR,*
BRSET 4,DIR,*
BRSET 5,DIR,*
BRSET 6,DIR,*
BRSET 7,DIR,*
*
BSET 0,DIR
BSET 1,DIR
BSET 2,DIR
BSET 3,DIR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XT
ORA ,X
ORA 1,X
ORA 1000,X
ORA 1,SP
ORA 1000,SP
*
PSHA
PSHH
PSHX
PULA
PULH
PULX
*
ROLA
ROLX
ROL DIR
ROL ,X
ROL 1,X
ROL 1,SP
*
RORA
RORX
ROR DIR
ROR ,X
ROR 1,X
ROR 1,SP
*
RSP
RTI
RTS
*
SBC #IMM
SBC DIR
SBC EXT
SBC ,X
SBC 1,X
SBC 1000,X
SBC 1,SP
SBC 1000,SP
*
SEC
SEI
*
STA DIR
STA EXT
STA ,X
STA 1,X
STA 1000,X
STA 1,SP
STA 1000,SP
*
STHX DIR
*
STOP
*
STX DIR
STX EXT
STX ,X
STX 1,X
STX 1000,X
STX 1,SP
STX 1000,SP
*
SUB #IMM
SUB DIR
SUB EXT
SUB ,X
SUB 1,X
SUB 1000,X
SUB 1,SP
SUB 1000,SP
*
SWI
TAP
TAX
TPA
*
TSTA
TSTX
TST DIR
TST ,X
TST 1,X
TST 1,SP
*
TSX
TXA
TXS
*
WAIT